﻿<div class="blade-static __bottom" ng-if="blade.isNew">
	<button class="btn" ng-click="blade.saveChanges()" ng-disabled="formScope.$invalid">
		<span>Create</span>
	</button>
</div>

<div class="blade-content">
	<div class="blade-inner">
		<div class="inner-block">
			<form class="form" name="contextEntityDetailForm">
				<fieldset ng-init="setForm(formScope);">
					<div class="form-group" ng-init="setForm(contextEntityDetailForm)">
						<label class="form-label">Content item name:</label>
						<div class="form-input">
							<input focus-on="" required class="form-control" ng-model="blade.entity.name" placeholder="Enter content item name" />
						</div>
					</div>
					<div class="form-group">
						<label class="form-label">Content item description:</label>
						<div class="form-input">
							<textarea required cols="60" rows="30" ng-model="blade.entity.description" placeholder="Enter content item description"></textarea>
						</div>
					</div>

					<div class="form-group" ng-repeat="property in blade.entity.dynamicProperties | orderBy: 'name'">
						<label class="form-label" for="">
							{{property.name}}
							<a href="" ng-click="editDictionary(property)" ng-show="property.isDictionary"><i class="form-ico fa fa-pencil"></i></a>
						</label>
						<va-generic-value-input ng-model="property" languages="languages" get-dictionary-values="getDictionaryValues" />
					</div>

					<div class="text" ng-if="blade.entity.dynamicProperties.length == 0">None</div>
				</fieldset>
			</form>
		</div>
	</div>
</div>